package com.solace.selenium.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNull;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("video_conf")
@Entity
public class VideoConf implements Serializable {

    @TableId(value = "id", type = IdType.UUID)
    @Id
    private String id;
    @NotNull(message = "配置类型不能为空")
    private Integer type;
    @NotNull(message = "操作内容不能为空")
    private String opsData;
    @Transient
    @TableField(exist = false)
    private String groupName;
    @NotNull(message = "排序不能为空")
    private Integer sort;
    @NotNull(message = "循环次数")
    private Integer cycle;
}